<?php
$page->BodyId = 'view_posts';
$page->BodyClass = '';
$page->Section = '';

if ( !$page->Ajax ) $page->SetWrapperFile('_wrapper');

?>

<? if ( $page->Entity ) : ?>
	<div class="posts_container">
		<h4>Comments:</h4>
		<? Site::RenderView('modules/_view_posts', array('entity' => $page->Entity)) ?>
		<p id="create_post">
			<a href="<?=$page->CreatePostUrl?>">Make a comment :)</a>
		</p>
	</div>
<? endif ?>